package com.woniu.command.handler;

import com.woniu.adapter.MaterialClassificationTypeAdapter;
import com.woniu.outlet.po.MaterialClassificationTypePo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MaterialClassificationTypeCommandHandler {

    @Autowired
    private MaterialClassificationTypeAdapter materialClassificationTypeAdapter;



    public Integer addMaterialClassificationType(MaterialClassificationTypePo materialClassificationTypePo){
        materialClassificationTypeAdapter.addMaterialClassificationTypePo(materialClassificationTypePo);
        return 1;
    }

    public Integer updateMaterialClassificationType(MaterialClassificationTypePo materialClassificationTypePo){
        materialClassificationTypeAdapter.updateMaterialClassificationType(materialClassificationTypePo);
        return 1;
    }

    public Integer deleteMaterialClassificationTypeById(Long id){
        materialClassificationTypeAdapter.deleteMaterialClassificationTypePoById(id);
        return 1;
    }



}
